package org.cnccc.dao.util;

public class DaoFactory {
	public static Object getInstance(String type){
		Object obj = null;
		String className = DaoConfig.getValue(type);	
			try {
				obj = Class.forName(className).newInstance();
			} catch (Exception e) {
				e.printStackTrace();
			} 	
		return obj;
	}
}
